#include "coin2/exchange/base/symbology/product_holder_manager.h"
#include "coin2/exchange/factory/symbology/product.h"

int main() {
  using coin2::exchange::base::symbology::ProductHolderManager;
  std::unique_ptr<ProductHolderManager> phm;
  auto config = coin::proto::ProductHolderManagerConfig();
  phm.reset(new ProductHolderManager(config));
  phm->SetFallBackNDay(7);
  auto product = CreateProductFromNormString(
       coin::proto::Options,
       coin::proto::Otc,
       "SAT-USDT.20241208.C.35.10000",
       GetCurrentTimestamp());
  auto ph = phm->GetProductHolder(*product, product->resolve_timestamp());
  ph->product_info();
}
